package org.tangolyricstagger.gui;

import org.eclipse.swt.graphics.Device;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;

public class GuiUtils {
	public static Image getImage(String name) {
		Device device = Display.getCurrent();
		ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
		return new Image(device, classLoader.getResourceAsStream("img/" + name));
	}
}
